package com.esteel.settlement.entity;

import java.io.Serializable;
import javax.persistence.*;
import javax.xml.bind.annotation.XmlElement;

import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the TB_SETT_TRANS database table.
 * 
 */
@Entity
@Table(name="TB_SETT_TRANS")
@NamedQuery(name="TbSettTran.findAll", query="SELECT t FROM TbSettTran t")
public class TbSettTran implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="THIRD_LOG_NO")
	private String thirdLogNo;

	@Column(name="FRONT_LOG_NO")
	private String frontLogNo;

	@Column(name="IN_CUST_ACCT_ID")
	private String inCustAcctId;

	@Column(name="IN_THIRD_CUST_ID")
	private String inThirdCustId;

	@Column(name="OUT_CUST_ACCT_ID")
	private String outCustAcctId;

	@Column(name="OUT_THIRD_CUST_ID")
	private String outThirdCustId;

	@Column(name="TRAN_AMOUNT")
	private BigDecimal tranAmount;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="TRAN_DATE")
	private Date tranDate;

	@Column(name="TRAN_FLAG")
	private BigDecimal tranFlag;

	@Column(name="TRAN_STATUS")
	private BigDecimal tranStatus;
	
	// 开始日期
		@XmlElement(name = "BeginDate")
		@DateTimeFormat(pattern = "yyyyMMdd")
		@Transient
		private Date beginDate;
		
		// 结束日期
		@Transient
		@XmlElement(name = "EndDate")
		@DateTimeFormat(pattern = "yyyyMMdd")
		private Date endDate;
		
		

	public Date getBeginDate() {
			return beginDate;
		}

		public void setBeginDate(Date beginDate) {
			this.beginDate = beginDate;
		}

		public Date getEndDate() {
			return endDate;
		}

		public void setEndDate(Date endDate) {
			this.endDate = endDate;
		}

	public TbSettTran() {
	}

	public String getThirdLogNo() {
		return this.thirdLogNo;
	}

	public void setThirdLogNo(String thirdLogNo) {
		this.thirdLogNo = thirdLogNo;
	}

	public String getFrontLogNo() {
		return this.frontLogNo;
	}

	public void setFrontLogNo(String frontLogNo) {
		this.frontLogNo = frontLogNo;
	}

	public String getInCustAcctId() {
		return this.inCustAcctId;
	}

	public void setInCustAcctId(String inCustAcctId) {
		this.inCustAcctId = inCustAcctId;
	}

	public String getInThirdCustId() {
		return this.inThirdCustId;
	}

	public void setInThirdCustId(String inThirdCustId) {
		this.inThirdCustId = inThirdCustId;
	}

	public String getOutCustAcctId() {
		return this.outCustAcctId;
	}

	public void setOutCustAcctId(String outCustAcctId) {
		this.outCustAcctId = outCustAcctId;
	}

	public String getOutThirdCustId() {
		return this.outThirdCustId;
	}

	public void setOutThirdCustId(String outThirdCustId) {
		this.outThirdCustId = outThirdCustId;
	}

	public BigDecimal getTranAmount() {
		return this.tranAmount;
	}

	public void setTranAmount(BigDecimal tranAmount) {
		this.tranAmount = tranAmount;
	}

	public Date getTranDate() {
		return this.tranDate;
	}

	public void setTranDate(Date tranDate) {
		this.tranDate = tranDate;
	}

	public BigDecimal getTranFlag() {
		return this.tranFlag;
	}

	public void setTranFlag(BigDecimal tranFlag) {
		this.tranFlag = tranFlag;
	}

	public BigDecimal getTranStatus() {
		return this.tranStatus;
	}

	public void setTranStatus(BigDecimal tranStatus) {
		this.tranStatus = tranStatus;
	}

}